
<!DOCTYPE html>
<html>

<head>
   
    
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!--360浏览器优先以webkit内核解析-->


<title>特价补差管理</title>

<link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
<link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="__STATIC__/layout/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
<link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
<link href="__STATIC__/layout/css/channel.css?v=4.1.0" rel="stylesheet">
<!-- Sweet Alert -->
<link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">


    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <style>
   
    </style>

</head>

<body class="white-bg" style="padding: 3px;font-size: 12px">
    <div class="page-heade">
       <h2 class="title_color text-center">特价补差管理</h2>
    </div>
    <div class="padding-10">
      <span class="lr_5"></span><a href="javascript:;" class="bnt btn-sm btn-info" id="addtejia">新增</a>
    </div>
    <table class="table table-striped table-bordered table-hover bud_hei text-center" style="width: 100%;">
        <tr class="info">
            <th class="text-center">对应三级费用科目名称</th>
            <th class="text-center">创建人</th>
            <th class="text-center">创建时间</th>
            <th class="text-center">修改人</th>
            <th class="text-center">修改时间</th>
            <th class="text-center">操作</th>
        </tr>
        <tbody style="border: 0">
            <tr>
                <td>网点特价补差</td>
                <td>梁景滔</td>
                <td>2018-01-25 17:51</td>
                <td></td>
                <td></td>
                <td><a href="javascript:;">修改</a>&nbsp;<a href="javascript:;" class="delthis">删除</a></td>
            </tr>
             <tr>
                <td>消费者价格折扣</td>
                <td>梁景滔</td>
                <td>2018-01-25 17:51</td>
                <td></td>
                <td></td>
                <td><a href="javascript:;">修改</a>&nbsp;<a href="javascript:;" class="delthis">删除</a></td>
            </tr>
             <tr>
                <td>经销商特价补差</td>
                <td>管理员</td>
                <td>2015-01-25 17:51</td>
                <td>梁景滔</td>
                <td>2018-01-25 17:50</td>
                <td><a href="javascript:;">修改</a>&nbsp;<a href="javascript:;" class="delthis">删除</a></td>
            </tr>
    </tbody>
    </table>
    <h5 class="text-center"  style="font-size: 13px;font-weight: 500">
                    总共有12条记录，第1/2页,当前页<input id="page" type="text"  style="width: 40px" value="1"/><span id="gopage">Go</span>&nbsp;&nbsp;<span id="fistpage">首页</span>&nbsp;&nbsp;
                    每页显示
                    <select id="pagesize">
                        <option value='10' selected>10条</option>
                        <option value='15'>15条</option>
                        <option value='20'>20条</option>

                    </select>
                </h5>
<div class="ibox-content" id="addrewardcordDIV" style="display: none;">
<form action="" class="form-inline">
    <table class="table table-bordered">
        <tr>
          <td style="width: 180px">对应三级费用科目<span class="colorRed">*</span></td>
          <td>
            <select name="" id="" class="form-control select">
                <option value="0">请选择</option>
                <option value="1">公关费</option>
                <option value="2">媒体广告费</option>
                <option value="3">新品开发费</option>
                <option value="4">主题活动费用</option>
                <option value="5">条码费</option>
                <option value="6">合同返利</option>
                <option value="7">交通费</option>
                <option value="8">住宿费</option>
                <option value="9">通信费</option>
                <option value="10">餐饮费</option>
                <option value="11">路演费</option>
                <option value="12">调研费</option>
                <option value="13">销售物料POSM</option>
            </select>
          </td>
        </tr>
    </table>
  </form>
</div>
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- Sweet alert -->
<script src="__STATIC__/layout/js/plugins/sweetalert/sweetalert.min.js"></script>
 <!-- <script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script> -->
 <script src="__STATIC__/layout/js/plugins/suggest/bootstrap-suggest.min.js"></script>

  <script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    $(function () {
        $('body').on('click','input[type=text]',function () {
            this.select()
        })
    })
</script>
<script src="__STATIC__/layout/js/plugins/layer/layer.min.js"></script>
<script>
    

  $(document).ready(function () {
        $('#reset').on('click',function () {
            $("#form1 input").each(function(){
                $(this).val('');
            });
            $("#form1 select").each(function(){
                $(this).val('');
            });
            $('#form1').submit()
            return false
        })
    })   

 
 

$("#addtejia").click(function(){
     layer.open({
                           type: 1,
                           title: '设置特价补差',
                           area: ['900px', '500px'],
                           fixed: false, //不固定
                           maxmin: true,
                           content: $('#addrewardcordDIV'),
                           btn:["提交","返回"]
                        /*   yes: function (i, o) {
                               var param = $('#form1').serialize()
                           $.post('/index/workflowdb/ysfy_cg.html', param, function (data) {
                               if (data.success) {
                                   swal({title: data.msg}, function () {
                                       layer.close(i)
                                       location.reload()
                                   })
                               } else {
                                   swal(data.msg)
                               }
                           }, 'json')
                       }
*/
                    });

})

 //删除
        $(document).on('click','.delthis',function(){
             var mid=$(this).parent().attr("mid");
            swal({
                            title: "提示",
                            text: "您真的要删除这个物料么？",
                            type: "warning",
                            showCancelButton: true,
                            confirmButtonColor: "#FF3333",
                            confirmButtonText: "是的我要删除",
                            cancelButtonText: "取消",
                            closeOnConfirm: true
                        })
                        // function (isConfirm) {
                        //     if (isConfirm) {
                        //    //alert(cid);
                        //     $.post("/kxzz/public/index.php/index/materials/dropm.html",{mid:mid},function(re){
                        //         //alert(re);
                        //         if(re==1){
                        //             swal({
                        //             title: "完成",
                        //             text:  "物料已删除",
                        //             type: "success"
                        //             },function(){
                        //                 location.href='/kxzz/public/index.php/index/materials/produce.html';
                        //             });
                        //         }else{
                        //              swal({
                        //             title: "错误",
                        //             text:  "系统繁忙请稍后再试",
                        //             type: "warning"
                        //             });
                        //         }
                        //     })
                        // }
                        // })
                           
        })
</script>
</body>

</html>